/**
 * Created with IntelliJ IDEA.
 * User: happyiu
 * Date: 2021-12-16
 * Time: 0:16
 * Description:
 */
public class TestDemo {

/*        public static void main(String[] args) {
            //叶子层
            int level = 10;
            //根层
            int rootLevel = 2;
            int spaceNum = level - 1;


            for (int i = 1; i <= level; i++) {
                spaceNum--;
                for (int g = 0; g <= spaceNum; g++) {
                    System.out.print(" ");
                }
                for (int j = 1; j <= ((i * 2) -1); j++) {
                    System.out.print("*");
                }
                System.out.print("\n");
            }

            //画根
            for (int i = 1; i <= rootLevel; i++) {
                for (int g = 1; g < level; g++) {
                    System.out.print(" ");
                }
                System.out.print("*\n");
        }
    }
}*/
}
